package com.healthcare.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.healthcare.admin.pojo.Adminoffice;
import com.healthcare.admin.mapper.AdminofficeMapper;
import com.healthcare.admin.service.AdminofficeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 科室字典表 服务实现类
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-12
 */
@Service
public class AdminofficeServiceImpl extends ServiceImpl<AdminofficeMapper, Adminoffice> implements AdminofficeService {

    @Autowired(required = false)
    private AdminofficeMapper adminofficeMapper;
    /**
     * 科室字典删除
     * @param
     */
    @Override
    public void deleteAdminofficeById(Integer id) {
        adminofficeMapper.deleteById(id);
    }

    /**
     * 查询科室列表
     * @param pageParam
     */
    @Override
    public void pageQuery(Page<Adminoffice> pageParam) {
        QueryWrapper<Adminoffice> queryWrapper = new QueryWrapper<>();
        baseMapper.selectPage(pageParam, queryWrapper);
    }
}
